package com.ruoyi.system.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 出入车辆历史信息对象 tb_vehicle_his
 * 
 * @author ruoyi
 * @date 2024-05-17
 */
public class TbVehicleHis extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** 车牌号 */
    @Excel(name = "车牌号")
    private String card;

    /** 是否预约（N无 Y有） */
    @Excel(name = "是否预约", readConverterExp = "N=无,Y=有")
    private String ifVisite;

    /** 进出标识（0入场 1出场） */
    @Excel(name = "进出标识", readConverterExp = "0=入场,1=出场")
    private String inOut;

    /** 记录时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "记录时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date noteTime;

    /** 进入时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "进入时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date inTime;

    /** 离开时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "离开时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date outTime;

    /** 车辆预约ID */
    @Excel(name = "车辆预约ID")
    private Long pid;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setCard(String card) 
    {
        this.card = card;
    }

    public String getCard() 
    {
        return card;
    }
    public void setIfVisite(String ifVisite) 
    {
        this.ifVisite = ifVisite;
    }

    public String getIfVisite() 
    {
        return ifVisite;
    }
    public void setInOut(String inOut) 
    {
        this.inOut = inOut;
    }

    public String getInOut() 
    {
        return inOut;
    }
    public void setNoteTime(Date noteTime) 
    {
        this.noteTime = noteTime;
    }

    public Date getNoteTime() 
    {
        return noteTime;
    }
    public void setInTime(Date inTime) 
    {
        this.inTime = inTime;
    }

    public Date getInTime() 
    {
        return inTime;
    }
    public void setOutTime(Date outTime) 
    {
        this.outTime = outTime;
    }

    public Date getOutTime() 
    {
        return outTime;
    }
    public void setPid(Long pid) 
    {
        this.pid = pid;
    }

    public Long getPid() 
    {
        return pid;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("card", getCard())
            .append("ifVisite", getIfVisite())
            .append("inOut", getInOut())
            .append("noteTime", getNoteTime())
            .append("inTime", getInTime())
            .append("outTime", getOutTime())
            .append("pid", getPid())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
